
package com.interest.business.service.impl;

import java.util.List;

import com.interest.business.domain.PayRecord;
import com.interest.business.mapper.PayRecordMapper;
import com.interest.business.service.IPayRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 下单记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-17
 */
@Service
public class PayRecordServiceImpl implements IPayRecordService
{
    @Autowired
    private PayRecordMapper payRecordMapper;

    /**
     * 查询下单记录
     * 
     * @param id 下单记录主键
     * @return 下单记录
     */
    @Override
    public PayRecord selectPayRecordById(String id)
    {
        return payRecordMapper.selectPayRecordById(id);
    }

    /**
     * 查询下单记录列表
     * 
     * @param payRecord 下单记录
     * @return 下单记录
     */
    @Override
    public List<PayRecord> selectPayRecordList(PayRecord payRecord)
    {
        return payRecordMapper.selectPayRecordList(payRecord);
    }

    /**
     * 新增下单记录
     * 
     * @param payRecord 下单记录
     * @return 结果
     */
    @Override
    public int insertPayRecord(PayRecord payRecord)
    {
        return payRecordMapper.insertPayRecord(payRecord);
    }

    /**
     * 修改下单记录
     * 
     * @param payRecord 下单记录
     * @return 结果
     */
    @Override
    public int updatePayRecord(PayRecord payRecord)
    {
        return payRecordMapper.updatePayRecord(payRecord);
    }

    /**
     * 批量删除下单记录
     * 
     * @param ids 需要删除的下单记录主键
     * @return 结果
     */
    @Override
    public int deletePayRecordByIds(String[] ids)
    {
        return payRecordMapper.deletePayRecordByIds(ids);
    }

    /**
     * 删除下单记录信息
     * 
     * @param id 下单记录主键
     * @return 结果
     */
    @Override
    public int deletePayRecordById(String id)
    {
        return payRecordMapper.deletePayRecordById(id);
    }
}
